package com.fbs.job.admin.core.trigger;

import com.fbs.job.admin.core.enums.TriggerTypeEnum;

public class Trigger {


    /**
     * 任务ID
     */
    private int jobId;
    /**
     * 触发类型
     */
    private TriggerTypeEnum triggerType;
    private int failRetryCount;
    private String executorShardingParam;
    private String executorParam;
    private String addressList;

    public Trigger(int jobId, TriggerTypeEnum triggerType, int failRetryCount, String executorShardingParam, String executorParam, String addressList) {
        this.jobId = jobId;
        this.triggerType = triggerType;
        this.failRetryCount = failRetryCount;
        this.executorShardingParam = executorShardingParam;
        this.executorParam = executorParam;
        this.addressList = addressList;
    }

    public int getJobId() {
        return jobId;
    }

    public void setJobId(int jobId) {
        this.jobId = jobId;
    }

    public TriggerTypeEnum getTriggerType() {
        return triggerType;
    }

    public void setTriggerType(TriggerTypeEnum triggerType) {
        this.triggerType = triggerType;
    }

    public int getFailRetryCount() {
        return failRetryCount;
    }

    public void setFailRetryCount(int failRetryCount) {
        this.failRetryCount = failRetryCount;
    }

    public String getExecutorShardingParam() {
        return executorShardingParam;
    }

    public void setExecutorShardingParam(String executorShardingParam) {
        this.executorShardingParam = executorShardingParam;
    }

    public String getExecutorParam() {
        return executorParam;
    }

    public void setExecutorParam(String executorParam) {
        this.executorParam = executorParam;
    }

    public String getAddressList() {
        return addressList;
    }

    public void setAddressList(String addressList) {
        this.addressList = addressList;
    }
}
